module.exports = {
  apps: [
    {
      name: 'api',
      script: './dist/main.js',
      exec_mode: 'cluster_mode',
      instances: 4,
      env: {
        NODE_ENV: 'production',
      },
    },
  ],
  deploy: {
    api: {
      user: 'root',
      host: ['47.99.153.143'],
	  port: '22022',
      ref: 'origin/master',
      repo: 'git@gitee.com:douxz/node20-shulian-api.git',
      path: '/www/api',
      'post-deploy': 'yarn && yarn build && yarn prepare',
    },
  },
};
